<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/view/common/includes.jsp" %>
<%@ include file="/WEB-INF/view/inc.jsp" %>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>

<div class="dialog_form">
    <form id="fm" method="post" action="<%=contextPath%>/ingredients/saveAndUpdate">
        <input type="hidden" name="cookbookId" value="${ingredients.cookbookId}"/>
        <input type="hidden" name="id" value=""/>

        <div class="dialog_item">
            <label>食材名称:</label>
            <input  name="ingredientName" class="no-space easyui-textbox" required="true"
                   validType="length[1,20]" value="${ingredients.ingredientName}">
        </div>
        <div class="dialog_item">
            <label>食材数量:</label>
            <input name="ingredientCount" class="easyui-numberbox" validType="length[1,20]" value="${ingredients.ingredientCount}">
        </div>
        <div class="dialog_item">
            <label>排序:</label>
            <input name="sortIndex" class="easyui-numberbox" validType="length[1,20]" value="${ingredients.sortIndex}">
        </div>
    </form>
</div>
</body>
</html>
